package com.alibaba.dubbo.provider.impl;

import com.alibaba.common.api.service.IInfoService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @Author Shengxian
 * @Date 2021/7/20 18:37
 * @Description
 */
@Service(version = "1.0.0",group = "demo")
public class IInfoServiceImpl implements IInfoService {
    @Override
    public String getInfo(String name) {
        if("xian".equals(name)){
            return "apple";
        }else if("biao".equals(name)){
            return "banana";
        }

        return "unknown name.";
    }
}
